+Sat May 23 17:48:58 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkeventbox.c (gtk_event_box_size_allocate):
+ Locate child at (border_width,border_width), not
+ (2*border_width,2*border_width). [ The border is _outside_
+ widget->window ]
+
+ * gdk/gdk.[ch]: added gdk_screen_width_mm/gdk_screen_height_mm
+ functions. [From: Alexander Larsson <alla@lysator.liu.se> ]
+
1998-05-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtk/gtkfeatures.h.in: Define GTK_HAVE_RC_SET_IMAGE_LOADER, to be
+Sat May 23 17:48:58 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkeventbox.c (gtk_event_box_size_allocate):
+ Locate child at (border_width,border_width), not
+ (2*border_width,2*border_width). [ The border is _outside_
+ widget->window ]
+
+ * gdk/gdk.[ch]: added gdk_screen_width_mm/gdk_screen_height_mm
+ functions. [From: Alexander Larsson <alla@lysator.liu.se> ]
+
1998-05-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtk/gtkfeatures.h.in: Define GTK_HAVE_RC_SET_IMAGE_LOADER, to be
+Sat May 23 17:48:58 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkeventbox.c (gtk_event_box_size_allocate):
+ Locate child at (border_width,border_width), not
+ (2*border_width,2*border_width). [ The border is _outside_
+ widget->window ]
+
+ * gdk/gdk.[ch]: added gdk_screen_width_mm/gdk_screen_height_mm
+ functions. [From: Alexander Larsson <alla@lysator.liu.se> ]
+
1998-05-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtk/gtkfeatures.h.in: Define GTK_HAVE_RC_SET_IMAGE_LOADER, to be
+Sat May 23 17:48:58 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkeventbox.c (gtk_event_box_size_allocate):
+ Locate child at (border_width,border_width), not
+ (2*border_width,2*border_width). [ The border is _outside_
+ widget->window ]
+
+ * gdk/gdk.[ch]: added gdk_screen_width_mm/gdk_screen_height_mm
+ functions. [From: Alexander Larsson <alla@lysator.liu.se> ]
+
1998-05-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtk/gtkfeatures.h.in: Define GTK_HAVE_RC_SET_IMAGE_LOADER, to be
+Sat May 23 17:48:58 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkeventbox.c (gtk_event_box_size_allocate):
+ Locate child at (border_width,border_width), not
+ (2*border_width,2*border_width). [ The border is _outside_
+ widget->window ]
+
+ * gdk/gdk.[ch]: added gdk_screen_width_mm/gdk_screen_height_mm
+ functions. [From: Alexander Larsson <alla@lysator.liu.se> ]
+
1998-05-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtk/gtkfeatures.h.in: Define GTK_HAVE_RC_SET_IMAGE_LOADER, to be
+Sat May 23 17:48:58 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkeventbox.c (gtk_event_box_size_allocate):
+ Locate child at (border_width,border_width), not
+ (2*border_width,2*border_width). [ The border is _outside_
+ widget->window ]
+
+ * gdk/gdk.[ch]: added gdk_screen_width_mm/gdk_screen_height_mm
+ functions. [From: Alexander Larsson <alla@lysator.liu.se> ]
+
1998-05-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtk/gtkfeatures.h.in: Define GTK_HAVE_RC_SET_IMAGE_LOADER, to be
+Sat May 23 17:48:58 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkeventbox.c (gtk_event_box_size_allocate):
+ Locate child at (border_width,border_width), not
+ (2*border_width,2*border_width). [ The border is _outside_
+ widget->window ]
+
+ * gdk/gdk.[ch]: added gdk_screen_width_mm/gdk_screen_height_mm
+ functions. [From: Alexander Larsson <alla@lysator.liu.se> ]
+
1998-05-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtk/gtkfeatures.h.in: Define GTK_HAVE_RC_SET_IMAGE_LOADER, to be
return return_val;
}
+/*
+ *--------------------------------------------------------------
+ * gdk_screen_width_mm
+ *
+ * Return the width of the screen in millimeters.
+ *
+ * Arguments:
+ *
+ * Results:
+ *
+ * Side effects:
+ *
+ *--------------------------------------------------------------
+ */
+
+gint
+gdk_screen_width_mm (void)
+{
+ gint return_val;
+
+ return_val = DisplayWidthMM (gdk_display, gdk_screen);
+
+ return return_val;
+}
+
+/*
+ *--------------------------------------------------------------
+ * gdk_screen_height
+ *
+ * Return the height of the screen in millimeters.
+ *
+ * Arguments:
+ *
+ * Results:
+ *
+ * Side effects:
+ *
+ *--------------------------------------------------------------
+ */
+
+gint
+gdk_screen_height_mm (void)
+{
+ gint return_val;
+
+ return_val = DisplayHeightMM (gdk_display, gdk_screen);
+
+ return return_val;
+}
+
void
gdk_key_repeat_disable (void)
{
gint gdk_screen_width (void);
gint gdk_screen_height (void);
+gint gdk_screen_width_mm (void);
+gint gdk_screen_height_mm (void);
+
void gdk_flush (void);
void gdk_beep (void);
return return_val;
}
+/*
+ *--------------------------------------------------------------
+ * gdk_screen_width_mm
+ *
+ * Return the width of the screen in millimeters.
+ *
+ * Arguments:
+ *
+ * Results:
+ *
+ * Side effects:
+ *
+ *--------------------------------------------------------------
+ */
+
+gint
+gdk_screen_width_mm (void)
+{
+ gint return_val;
+
+ return_val = DisplayWidthMM (gdk_display, gdk_screen);
+
+ return return_val;
+}
+
+/*
+ *--------------------------------------------------------------
+ * gdk_screen_height
+ *
+ * Return the height of the screen in millimeters.
+ *
+ * Arguments:
+ *
+ * Results:
+ *
+ * Side effects:
+ *
+ *--------------------------------------------------------------
+ */
+
+gint
+gdk_screen_height_mm (void)
+{
+ gint return_val;
+
+ return_val = DisplayHeightMM (gdk_display, gdk_screen);
+
+ return return_val;
+}
+
void
gdk_key_repeat_disable (void)
{
widget->allocation = *allocation;
bin = GTK_BIN (widget);
- child_allocation.x = GTK_CONTAINER (widget)->border_width;
- child_allocation.y = GTK_CONTAINER (widget)->border_width;
+ child_allocation.x = 0;
+ child_allocation.y = 0;
child_allocation.width = MAX (allocation->width - GTK_CONTAINER (widget)->border_width * 2, 0);
child_allocation.height = MAX (allocation->height - GTK_CONTAINER (widget)->border_width * 2, 0);